import config from '@/env/config';
import request from '@/router/axios';
const baseUrl = config.baseUrl;
// 0 短信分享
// 1 微信分享
export const shareMsg = (userName, phone, shareType, communityId) => request({
    url: `${baseUrl}/entrance_guard/api/shareQr`,
    method: 'post',
    data: {
        userName,
        phone,
        shareType,
        communityId
    },
});

export const getCommunityList = () => request({
    url: `${baseUrl}/app/bindOwner/getCommunityInfosByWyId`,
    method: 'get',
});


export const getUser = () => request({
    url: `${baseUrl}/app/bindOwner/currentUser`,
    methods: 'get'
})

export const wxunbind = () => request({
    url: `${baseUrl}/app/unBindOpenId`,
    method: 'get',
});